<template>
  <div>
    <div>
      <Header />
    </div>
    <div>
      <wordCloudVue />
    </div>
    <divider />
    <moviePushTop8 />
  </div>
</template>
<script setup>
import Header from '@/components/Client/GlobalCom/Header'
import wordCloudVue from '@/components/Client/moviePushCom/wordCloud'
import divider from '@/components/Client/moviePushCom/divider'
import moviePushTop8 from '@/components/Client/moviePushCom/moviePushTop8'
import { onMounted } from 'vue'
import axios from 'axios'
import router from '@/router'
onMounted(() => {
  if (document.documentElement.clientWidth < document.documentElement.clientHeight) {
    router.push('/moviePushMobile')
  }
  axios.get('/api/suggest/toRedis').then((res) => {
    console.log(res)
  })
  const uid = JSON.parse(sessionStorage.getItem('uid'))
  axios.get('/api/suggest/getSuggestByUid/' + uid).then((res) => {
    console.log(res)
  })
})
</script>
